package com.chinamoney.wppm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.chinamoney.wppm.entity.BudgetManagement;

/**
 * 
 * @author Jason_Jiang
 *
 */
@Mapper
public interface BdmDao {
	
	BudgetManagement getBdmById(@Param("id") String id);
	
	/**
	 *    按年度统计各部门的预算支出
	 * @param year：年度，格式是 year-01-01 00:00:00
	 * @return
	 */
	List<Map<String, Object>> getBdmInDeptByYear(@Param("year") String year);
	
	/**
	 * 
	 * @param page
	 * @param rows
	 * @return
	 */
	List<BudgetManagement> getBdms(@Param("page") int page, @Param("rows") int rows);
	
	int getBdmsCount();
	
	Map<String, Object> getBdmByDept(@Param("dept") String dept);
}
